import request from '@/utils/request'

// 查询培训人员管理列表
export function listEmployeeManagement(query) {
  return request({
    url: '/employeeManagement/employeeManagement/list',
    method: 'get',
    params: query
  })
}

// 查询培训人员管理详细
export function getEmployeeManagement(id) {
  return request({
    url: '/employeeManagement/employeeManagement/' + id,
    method: 'get'
  })
}
// 验证员工姓名和手机号
export function validateEmployee(data) {
  return request({
    url: '/employeeManagement/employeeManagement/validateEmployee',
    method: 'post',
    data: data
  })
}
// 新增培训人员管理
export function addEmployeeManagement(data) {
  return request({
    url: '/employeeManagement/employeeManagement',
    method: 'post',
    data: data
  })
}

// 修改培训人员管理
export function updateEmployeeManagement(data) {
  return request({
    url: '/employeeManagement/employeeManagement',
    method: 'put',
    data: data
  })
}

// 删除培训人员管理
export function delEmployeeManagement(id) {
  return request({
    url: '/employeeManagement/employeeManagement/' + id,
    method: 'delete'
  })
}

export function importTemplate() {
  return request({
    url: '/employeeManagement/employeeManagement/importTemplate',
    method: 'post',
    responseType: 'blob'
  })
}